package cc.yugu.yhdw.webserver.persistence.hdw;

import cc.yugu.yhdw.common.domain.hdw.ExchangeAmountMoneyDivide;
import cc.yugu.yhdw.common.persistence.MasterMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * 换电次数金额划分信息
 * 
 * @Date:Created in 2018/6/30 14:37
 * @Author:
 * @Modified By: zjn 2018/6/30 14:37
 */ 
public interface ExchangeAmountMoneyDivideMapper extends MasterMapper {
    /**
    * 查询表hdw_exchange_amount_money_divide，返回行数
    * 
    * @Param: [exchangeAmountMoneyDivide]
    * @Return: int
    * @Author By: zjn 2018/6/30  14:38
    */ 
    public int findPageCount(ExchangeAmountMoneyDivide exchangeAmountMoneyDivide);
    /**
    * 分页查询
    * 
    * @Param: [exchangeAmountMoneyDivide]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.ExchangeAmountMoneyDivide>
    * @Author By: zjn 2018/6/30  14:38
    */ 
    public List<ExchangeAmountMoneyDivide> findPageResult(ExchangeAmountMoneyDivide exchangeAmountMoneyDivide);
    /**
    * 查询
    * 
    * @Param: [agentId, agencyId]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.ExchangeAmountMoneyDivide>
    * @Author By: zjn 2018/6/30  14:38
    */ 
    public List<ExchangeAmountMoneyDivide> findByAgent(@Param("agentId") Integer agentId, @Param("agencyId") Integer agencyId);
    /**
    * 根据主键查询
    * 
    * @Param: [v]
    * @Return: cc.yugu.yhdw.common.domain.hdw.ExchangeAmountMoneyDivide
    * @Author By: zjn 2018/6/30  14:38
    */ 
    public ExchangeAmountMoneyDivide find(@Param("id") int v);
    /**
    * 插入
    * 
    * @Param: [exchangeAmountMoneyDivide]
    * @Return: int
    * @Author By: zjn 2018/6/30  14:38
    */ 
    public int insert(ExchangeAmountMoneyDivide exchangeAmountMoneyDivide);
    /**
    * 根据主键更新 划分方案名称和备注
    * 
    * @Param: [exchangeAmountMoneyDivide]
    * @Return: int
    * @Author By: zjn 2018/6/30  14:38
    */ 
    public int update(ExchangeAmountMoneyDivide exchangeAmountMoneyDivide);
    /**
    * 根据主键删除
    * 
    * @Param: [id]
    * @Return: int
    * @Author By: zjn 2018/6/30  14:38
    */ 
    public int delete(int id);
    /**
    * 根据运营商id删除
    * 
    * @Param: [agentId]
    * @Return: int
    * @Author By: zjn 2018/6/30  14:38
    */ 
    public int deleteByAgent(int agentId);
    /**
    * 根据代理商id删除
    * 
    * @Param: [agencyId]
    * @Return: int
    * @Author By: zjn 2018/6/30  14:38
    */ 
    public int deleteByAgency(int agencyId);
}
